package ioshuchu;

import java.io.FileInputStream;
import java.io.FileOutputStream;

public class Kao_6_png {


    public static void main(String[] args)  throws      Exception{
        FileInputStream fis=new FileInputStream("D:\\1.png");
        FileOutputStream fos=new FileOutputStream("com.jpg");
        int len=0;
        byte[] by=new byte[1024];
        while ((len=fis.read(by))!=-1)
        {
            fos.write(by,0,len);
        }
        fis.close();
        fos.close();


    }
}
